]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: make user list fade-in on vt switch more reliable
authorRay Strode <rstrode@redhat.com>
Tue, 4 Aug 2015 13:53:04 +0000 (09:53 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 5 Aug 2015 13:40:15 +0000 (09:40 -0400)
We fade out the authentication prompt when a user successfully
logs into a user session. We reset it and fade it back in when
the user switches back to the login screen VT.

The problem is, we only fade it back in if the auth prompt status is
VERIFICATION_SUCCEEDED.  It's possible for it to be NOT_VERIFYING
if the authprompt gets reset for some other reason in the interim.

This commit changes the check to be more precise. We now only skip
the fade-in, if we're already faded in, and we only skip the reset if
we're already reset.

https://bugzilla.gnome.org/show_bug.cgi?id=753181

js/gdm/loginDialog.js

index 0dabacdc2e9c568217e5151c84d50d8fcf0dddd8..c56651ba9324803aeb8e858de3ac23086f62f832 100644 (file)
@@ -874,7 +874,7 @@ const LoginDialog = new Lang.Class({
     },
 
     _loginScreenSessionActivated: function() {
-        if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.VERIFICATION_SUCCEEDED)
+        if (this.actor.opacity == 255 && this._authPrompt.verificationStatus == AuthPrompt.AuthPromptStatus.NOT_VERIFYING)
             return;
 
         Tweener.addTween(this.actor,
@@ -891,7 +891,8 @@ const LoginDialog = new Lang.Class({
                            },
                            onUpdateScope: this,
                            onComplete: function() {
-                               this._authPrompt.reset();
+                               if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.NOT_VERIFYING)
+                                   this._authPrompt.reset();
                            },
                            onCompleteScope: this });
     },